package com.bp.hearthealth.pulse.lnapps.bp_db.bp_heartrate

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey

@Entity(tableName = "heart_rate_monitor")
data class BpHeartRateBean(
    @PrimaryKey(autoGenerate = true)
    val id: Long = 0,
    @ColumnInfo(name = "userId")
    val userId: String,
    val unlocked: Boolean = false,
    val date: Long,
    val number: Int = 0,
    val type: Int = 0,
)

//关联user表
//data class UserWithHeartRates(
//    @Embedded
//    val user: User,
//    @Relation(
//        parentColumn = "id",
//        entityColumn = "userId"
//    )
//    val heartRates: List<HeartRateBean>
//)
